import request from "@/util/request.js";

export function reqGetReaderPage(query) {
    return request({
        url: '/reader/page',
        method: 'get',
        params: query
    })
}
export function reqSaveReader(data) {
    return request({
        url: '/reader',
        method: 'post',
        data
    })
}
export function reqDeleteReader(data) {
    return request({
        url: '/reader',
        method: 'delete',
        data
    })
}
export function reqGetReader(id) {
    return request({
        url: '/reader/' + id,
        method: 'get'
    })
}
export function reqUpdateReader(data) {
    return request({
        url: '/reader',
        method: 'put',
        data
    })
}

export function reqGetReaderCount() {
    return request({
        url: '/reader/count',
        method: 'get'
    })
}
